package com.example.service;

import com.example.mapper.UserInfoMapper;
import com.example.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * Description:
 * User: 阿宾
 * Date: 2025-05-05
 * Time: 20:10
 */
@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;
    @Transactional(propagation = Propagation.NESTED)
    public Integer registerUser(UserInfo userInfo) {
        return userInfoMapper.insert(userInfo);
    }
}
